<?php


class ACommand {
	
	private $name = "";
	
	private $params = array() ;
	
	private $switch = array();
	
	private $small_description = "";
	
	protected function __construct( $name, $params, $switch ) {
		$this->name = $name;
		$this->params = $params;
		$this->switch = $switch;
	}
	
	public function function getHelp() {
		echo " $name \n";
		echo "prameters: " ;
		if( !empty( $params ) ) {
			foreach( $params as $p )
			echo " $p ,";
		} else echo "--none--" ;
		
		echo "switch: ";
		if( !empty( $switch ) ) {
			foreach( $switch as $s )
			echo " $s ,";
		} else echo "--none--" ;
	} 
	
	public  function getName() {
		return $this->name;
	}
	
	public function isName( $name ) {
		return ($this->name == $name);
	}
	
	
}
